package thread;

public class Tortoise extends Thread{

	Rabbit rabbit;
	
	@Override
	public void run() {
		for(int i = 0 ; i<= 1000; i += 10) {
			System.out.println("乌龟在" + i + "米");
			
			try {
				Thread.sleep(10);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
		System.out.println("乌龟到终点...");
		rabbit.interrupt();
	}
	
}
